package cc.mrbird.submission.util;

import java.util.HashMap;
import java.util.Map;

public class cehsi {
    public static void main(String [] args){
        WXPayUtil wxPayUtil = new WXPayUtil();
        Map map = new HashMap();
        //通知编号
        map.put("id","93");
        //通知内容
        map.put("content","你好，前台人员有提交新的投诉信息，投诉编号为：188，请注意查看");
        //keyid
        map.put("keyid","2");
        //随机数
         map.put("random_number",wxPayUtil.generateNonceStr());
        //时间戳
        map.put("time_stamp",String.valueOf(System.currentTimeMillis()));

        String key = "EL6UjSc4U1it6vaFrQ9GlGiMicEbRc0P";
/*
        map.put("sign","xxxsxxxxxxxxxx");
*/
        try {
             System.out.println(wxPayUtil.generateSignature(map,key));
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

}
